<h1>發電報</h1>

<%= error_messages_for :computer %>

<% form_for @computer, :html => { :class => "f-wrap-1"} do |f| %>
  <fieldset>
    <label><b><span class="req">*</span>名稱</b>
    <%= f.text_field :user_name %><br />
    </label>

    <label><b>URL</b>
    <%= f.text_field :user_link %><br />
    </label>

    <label><b><span class="req">*</span>標題</b>
    <%= f.text_field :title %><br />
    </label>

    <label><b><span class="req">*</span>處理器</b>
    <%= f.text_field :cpu %><br />
    <b>$</b>
    <%= f.text_field :cpu_price %><br />
    </label>

    <label><b><span class="req">*</span>記憶體</b>
    <%= f.text_field :ram %><br />
    <b>$</b>
    <%= f.text_field :ram_price %><br />
    </label>

    <label><b><span class="req">*</span>主機板</b>
    <%= f.text_field :motherboard %><br />
    <b>$</b>
    <%= f.text_field :motherboard_price %><br />
    </label>

    <label><b><span class="req">*</span>顯示卡</b>
    <%= f.text_field :vga %><br />
    <b>$</b>
    <%= f.text_field :vga_price %><br />
    </label>

    <label><b><span class="req">*</span>硬碟</b>
    <%= f.text_field :hd %><br />
    <b>$</b>
    <%= f.text_field :hd_price %><br />
    </label>

    <label><b><span class="req">*</span>光碟機</b>
    <%= f.text_field :cd %><br />
    <b>$</b>
    <%= f.text_field :cd_price %><br />
    </label>

    <label><b><span class="req">*</span>音效卡</b>
    <%= f.text_field :audio %><br />
    <b>$</b>
    <%= f.text_field :audio_price %><br />
    </label>

    <label><b><span class="req">*</span>電源供應器</b>
    <%= f.text_field :power %><br />
    <b>$</b>
    <%= f.text_field :power_price %><br />
    </label>

    <label><b><span class="req">*</span>備註</b>
    <%= f.text_field :user_name %><br />
    <b>$</b>
    <%= f.text_field :cpu_price %><br />
    </label>

    <label><b>備註</b>
    <%= f.text_area(:description, :cols=>'30', :rows=>'10') %><br />
    </label>

    <img src="/noisy_image/code_image">
    <br />輸入驗證碼: <%= text_field_tag(:typed_code) %>

    <div class="f-submit-wrap">
      <%= f.submit "Create", :class => "f-submit" %>
    </div>
  </fieldset>
<% end %>

<%= back_to_computers %>
